package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.TestDao;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author: libin
 * @date: 2019/11/17 22:17
 * @version: 1.0
 * @describe:
 */
@Service(interfaceClass =TestService.class )
@Transactional
public class TestServiceImpl implements TestService {

    @Autowired
    TestDao testDao;
    @Override
    public List<User> getAllUser() {
    return testDao.getAllUser();
    }
}
